package com.xdcplus.web.mapper.wip;

import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.entity.wip.WipUnpackPlan;
import com.xdcplus.web.common.pojo.query.wip.WipUnpackPlanQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 投料/拆包计划表(WipUnpackPlan)表数据库访问层
 *
 * @author xyy
 * @since 2023-05-04 19:55:25
 */
public interface WipUnpackPlanMapper extends IBaseMapper<WipUnpackPlan> {

    /**
     * 查询投料/拆包计划表(WipUnpackPlan)
     *
     * @param wipUnpackPlanQuery 投料/拆包计划表(WipUnpackPlan)查询
     * @return {@link List<WipUnpackPlan>}
     */
    List<WipUnpackPlan> queryWipUnpackPlan(WipUnpackPlanQuery wipUnpackPlanQuery);

    /**
     * 根据过账查询拆包计划
     * @param commissioningDate 投产日期
     * @param pmShiftPlanIdFk  班次
     * @param toolCode  设备编码
     * @return
     */
    WipUnpackPlan getUnpackPlanByProcess(@Param("commissioningDate") String commissioningDate, @Param("pmShiftPlanIdFk") Long pmShiftPlanIdFk, @Param("toolCode") String toolCode);
    WipUnpackPlan getUnpackPlanByPlanCode(String planCode);

    List<WipUnpackPlan> getUnpackPlanByPlanCodes(@Param("unpackPlanCodes") List<String> unpackPlanCodes);


}
